package com.tkjt.pms.calc.formula.utils;

public class FormulaDataLoaderUtils {



    public static Integer getCalcQi(String indexYearMonth) {
        Integer month = Integer.valueOf(indexYearMonth.substring(4));
        if (month >= 1 && month <= 3) {
            return 1;
        } else if (month >= 4 && month <= 6) {
            return 2;
        } else if (month >= 7 && month <= 9) {
            return 3;
        } else if (month >= 10 && month <= 12) {
            return 4;
        }
        return null;
    }
    
}
